﻿using System;
using System.Collections.Generic;
using System.Text;


namespace SlTest
{
    public class BookPage
    {
        private string uri;

        public string CurrentUri
        {
            get { return uri; }
            set { uri = value; }
        }

        public string BookContentUri
        { get; set; }
        private string author;

        public string Author
        {
            get { return author; }
            set { author = value; }
        }


        public string Catalog
        { get; set; }
        private string name;

        public string BookName
        {
            get { return name; }
            set { name = value; }
        }
        public UriName NewChapter
        { get; set; }        
        
        private DateTime? lastUpdateTime;
        public DateTime? LastUpdateTime
        {
            get { return lastUpdateTime; }
            set { lastUpdateTime = value; }
        }
        private string introduce;
        public string Introduce
        {
            get { return introduce; }
            set { introduce = value; }
        }
        public string ImageUri
        {get;set;}
    }
    public class UriName
    {
        private string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        private string uri;

        public string Uri
        {
            get { return uri; }
            set { uri = value; }
        }
    }
    public class BookContent
    {
        private Uri currentUri;
        /// <summary>
        /// 当前页面地址
        /// </summary>
        public Uri CurrentUri
        {
            get { return currentUri; }
            set { currentUri = value; }
        }
        public string BookPage
        {
            get;
            set;
        }
        private string name;

        public string BookName
        {
            get { return name; }
            set { name = value; }
        }
        private string author;

        public string Author
        {
            get { return author; }
            set { author = value; }
        }
        //public bool CanInfer = false;

        private List<UriName> chapters = new List<UriName>();
        public List<UriName> Chapters
        {
            get;
            set;
        }
        
    }
    public enum ChapterType
    {
        Text,
        UriText,
        Image
    }

}
